import 'package:flutter/material.dart';
import 'package:flutterdemo/1demo/common/utils/local_storage_util.dart';
import 'package:shared_preferences/shared_preferences.dart';

get0_7screenWidth(context) {
  return MediaQuery.of(context).size.width * 0.7;
}


Future<bool> isLogin() async{
  SharedPreferences sp =await SharedPreferences.getInstance();
  bool isLogin = sp.getBool(LocalData.IS_LOGIN);
  if(isLogin == null || isLogin == false) {
    return false;
  }else{
    return true;
  }
}